package com.yanqu.road.entity.log.feast;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_feast_event_finish", desc = "山河乐宴-事件完成", autoSave = true, dataUpload = true, eventName = "shfete_event", uploadCk = true)
public class LogFeastEventFinish extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true, dataAttribute = "activityid")
    private int activityId;

    @FieldTypeAnnotation(desc = "副本id", dataAttribute = "shfete_barid")
    private int missionId;

    @FieldTypeAnnotation(desc = "事件id", dataAttribute = "shfete_eventid")
    private int eventId;

    @FieldTypeAnnotation(desc = "获得奖励", dataAttribute = "shfete_get")
    private String reward;

    @FieldTypeAnnotation(desc = "难度", dataAttribute = "shfete_diffid", insert = false)
    private int diffId;

    public LogFeastEventFinish(long userId, int activityId, int missionId, int eventId, String reward) {
        this.userId = userId;
        this.activityId = activityId;
        this.missionId = missionId;
        this.eventId = eventId;
        this.reward = reward;
    }

    @Override
    public long getUserId() {
        return userId;
    }

    public void setDiffId(int diffId) {
        this.diffId = diffId;
    }
}
